﻿/**********************************************************************
 * @file   GUILoadPickSubSysDialog.h
 * @brief  
 * @author liuzhonghua (liuzhonghuaszch@163.com)
 * @date   2024-12-30
 *********************************************************************/
#ifndef _GUILoadPickSubSysDialog_H
#define _GUILoadPickSubSysDialog_H

#include "GUILoadDialogAPI.h"
#include "GUIWidget/GUIDialogBase.h"
#include "FITK_Kernel/FITKCore/FITKActionOperator.h"

namespace Ui
{
    class GUILoadPickSubSysDialog;
}

namespace GUI
{
    /**
     * @brief FlatPlate create or edit widget
     * @author liuzhonghua (liuzhonghuaszch@163.com)
     * @date 2024-10-23
     */
    class GUILoadDialogAPI GUILoadPickSubSysDialog : public GUIDialogBase
    {
        Q_OBJECT;
    public:
        /**
         * @brief create object
         * @param[i]  obj            My Param doc
         * @param[i]  oper           operator
         * @param[i]  parent
         * @author liuzhonghua (liuzhonghuaszch@163.com)
         * @date 2024-10-23
         */
        GUILoadPickSubSysDialog(Core::FITKActionOperator* oper, QWidget* parent = nullptr);
        /**
         * @brief Destroy object
         * @author liuzhonghua (liuzhonghuaszch@163.com)
         * @date 2024-10-23
         */
        virtual ~GUILoadPickSubSysDialog();

    protected slots:
        /**
         * @brief  模式选择组动作
         * @param[i]  id
         * @return   void
         * @author liuzhonghua (liuzhonghuaszch@163.com)
         * @date   2024-11-01
         */
        void on_comboBox_PickModel_currentIndexChanged(int index);
        /**
         * @brief cencel button clicked slot
         * @author liuzhonghua (liuzhonghuaszch@163.com)
         * @date 2024-10-23
         */
        void on_pushButton_Cancel_clicked();
        /**
         * @brief ok button clicked slot
         * @author liuzhonghua (liuzhonghuaszch@163.com)
         * @date 2024-10-23
         */
        void on_pushButton_OK_clicked();
        /**
         * @brief    关闭槽
         * @return   void
         * @author   liuzhonghua (liuzhonghuaszch@163.com)
         * @date     2024-11-07
         */
        virtual void reject() override;

    protected:
        /**
         * @brief    初始化
         * @return   void
         * @author   liuzhonghua (liuzhonghuaszch@163.com)
         * @date     2024-11-12
         */
        void init();

    protected:
        /**
         * @brief ui object
         * @author liuzhonghua (liuzhonghuaszch@163.com)
         * @date 2024-10-23
         */
        Ui::GUILoadPickSubSysDialog* _ui = nullptr;
        /**
         * @brief 操作器对象
         * @author liuzhonghua (liuzhonghuaszch@163.com)
         * @date 2024-10-23
         */
        Core::FITKActionOperator* _oper = nullptr;
    };
}

#endif
